layui.define(['table', 'majorApi'], function(exports) {
    var majorApi = layui.majorApi;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(){
            var data = Common.getMoreDataFromTable(table,"tDPlanningDataTable");
            if(data==null){
                return ;
            }
            var provId = data[0].provinceId;
            var pId = $("#id").val();
            Common.openConfirm("确认要删除这些招生计划?",function(){
                var ids =Common.concatBatchId(data,"id");
                majorApi.del(ids,provId,pId,function(){
                Common.info("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del',view);
	
});